import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const store = new Vuex.Store({
    state: {
        test: 1,


    },
    getters: {
        arrlen: (store) => {
            return store.test.length
        }

    },
    mutations: {
        testval: function(state, val) {
            state.test = val
        }

    }
})

export default store;